Skip to content

ci: mock server test workflow#8

Merged
joe-p merged 3 commits intomainfrom
ci/mock_server_test
Nov 13, 2025
Merged

ci: mock server test workflow#8
joe-p merged 3 commits intomainfrom
ci/mock_server_test

Conversation

@joe-p
Copy link
Contributor

@joe-p joe-p commented Nov 13, 2025

Also included a minor refactor to use the replay function in the server

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a CI workflow for testing the mock server and refactors the server implementation to use a cleaner abstraction for replay functionality.

  • Adds GitHub Actions workflow to automatically run mock server tests on PRs
  • Refactors server request handling to use the replay() helper function instead of manual Polly setup/teardown
  • Enhances the replay() function to support generic return types for better type safety

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/test_mock_server.yml New CI workflow that runs mock server tests using Bun on pull requests
resources/mock-server/package.json Adds test script to run vitest via Bun
resources/mock-server/src/server.ts Refactored to use replay() helper function, removing manual Polly setup/teardown code
resources/mock-server/src/index.ts Enhanced replay() function with generic type parameter and return value support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joe-p joe-p force-pushed the ci/mock_server_test branch from 82d9393 to 802c9b2 Compare November 13, 2025 13:27
@lempira lempira self-requested a review November 13, 2025 23:40
@joe-p joe-p merged commit b5b52ea into main Nov 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants